package com.qifan.alb2b.service;

import org.springframework.stereotype.Service;

import com.qifan.alb2b.dao.ConfigInfoDao;
import com.qifan.alb2b.domain.ConfigInfoDomain;
import com.qifan.alb2b.util.DataGridModel;
import com.qifan.alb2b.util.Page;

@Service
public class ConfigInfoService {
	private ConfigInfoDao configInfoDao;

	public void setConfigInfoDao(ConfigInfoDao configInfoDao) {
		this.configInfoDao = configInfoDao;
	}
	
	public Page query(DataGridModel dgm,ConfigInfoDomain uqp){
		return configInfoDao.query(dgm,uqp);
	}
	
	public void add(ConfigInfoDomain configInfoDomain){
		configInfoDao.add(configInfoDomain);
	}
	
	public void update(ConfigInfoDomain configInfoDomain){
		configInfoDao.update(configInfoDomain);
	}
	
	
	public ConfigInfoDomain getConfigById(String id){
		return configInfoDao.getConfigById(id);
	}
	
}
